// ==========================================================================
// 云捷GO自动生成路由代码，只生成一次，按需修改,再次生成不会覆盖.
// 生成日期：2021-07-09 11:02:15
// 生成路径: app/controller/module/category_router.go
// 生成人：gfcms
// ==========================================================================
package module

import (
	"myblog/app/controller/module/category"
	"myblog/app/service/middleware/auth"
	"myblog/app/service/middleware/router"
)

//加载路由
func init() {
	g1 := router.New("admin", "/module/category", auth.Auth)
	g1.GET("/", "module:category:view", category.List)
	g1.POST("/list", "module:category:list", category.ListAjax)
	g1.GET("/add", "module:category:add", category.Add)
	g1.POST("/add", "module:category:add", category.AddSave)
	g1.POST("/remove", "module:category:remove", category.Remove)
	g1.GET("/edit", "module:category:edit", category.Edit)
	g1.POST("/edit", "module:category:edit", category.EditSave)
	g1.POST("/export", "module:category:export", category.Export)
	g1.GET("/selectMenuTree", "module:category:view", category.SelectMenuTree)  //弹出框显示菜单树页面
	g1.GET("/menuTreeData", "module:category:view", category.MenuTreeData)  //弹出框显示菜单树页面
}
